package o;

import android.app.Activity;
import android.content.Context;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ImageView;
import androidx.databinding.ViewDataBinding;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.framework.widget.uxwidget.hwdotspageindicator.HwTopBannerIndicator;
import com.huawei.appmarket.service.store.awk.bean.BannerV9CardBean;
import com.huawei.appmarket.service.store.awk.bean.BannerV9ListCardBean;
import com.huawei.appmarket.service.store.awk.widget.topbanner.DotsViewPager;
import com.huawei.fastengine.fastview.startFastappEngine.bean.RpkInfo;
import com.huawei.hms.common.data.DataBufferSafeParcelable;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import o.ewm.j;
import o.ewm.n;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u0000 @2\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001@B\u001d\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\b¢\u0006\u0002\u0010\tJ\u0010\u0010*\u001a\u00020+2\u0006\u0010,\u001a\u00020-H\u0002J\u0016\u0010.\u001a\b\u0012\u0002\b\u0003\u0018\u00010/2\u0006\u00100\u001a\u00020'H\u0016J \u00101\u001a\u00020+2\u0006\u00102\u001a\u0002032\u0006\u00104\u001a\u00020\u00132\u0006\u00105\u001a\u00020\u0013H\u0014J\u0012\u00106\u001a\u00020+2\b\u00107\u001a\u0004\u0018\u000108H\u0016J\u0010\u00109\u001a\u00020+2\u0006\u0010,\u001a\u00020:H\u0016J\u0010\u0010;\u001a\u00020+2\b\u0010\"\u001a\u0004\u0018\u00010#J\u0012\u0010<\u001a\u00020+2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0011H\u0016J\b\u0010=\u001a\u00020+H\u0002J\b\u0010>\u001a\u00020+H\u0002J\b\u0010?\u001a\u00020+H\u0002R\u001b\u0010\n\u001a\u00020\u000b8BX\u0002¢\u0006\f\n\u0004\b\u000e\u0010\u000f\u001a\u0004\b\f\u0010\rR\u0010\u0010\u0010\u001a\u0004\u0018\u00010\u0011X\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0012\u001a\u0004\u0018\u00010\u0013X\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\bX\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0003\u001a\u00020\u0004X\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0014\u001a\u0004\u0018\u00010\u0015X\u000e¢\u0006\u0002\n\u0000R\u001b\u0010\u0016\u001a\u00020\u00178BX\u0002¢\u0006\f\n\u0004\b\u001a\u0010\u000f\u001a\u0004\b\u0018\u0010\u0019R%\u0010\u001b\u001a\u0016\u0012\u0004\u0012\u00020\u0013\u0018\u00010\u001cj\n\u0012\u0004\u0012\u00020\u0013\u0018\u0001`\u001d8F¢\u0006\u0006\u001a\u0004\b\u001e\u0010\u001fR\u0010\u0010 \u001a\u0004\u0018\u00010!X\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\"\u001a\u0004\u0018\u00010#X\u000e¢\u0006\u0002\n\u0000R\u0010\u0010$\u001a\u0004\u0018\u00010%X\u000e¢\u0006\u0002\n\u0000R\u0010\u0010&\u001a\u0004\u0018\u00010'X\u000e¢\u0006\u0002\n\u0000R\u0010\u0010(\u001a\u0004\u0018\u00010)X\u000e¢\u0006\u0002\n\u0000¨\u0006A"}, d2 = {"Lcom/huawei/appmarket/service/store/awk/card/VerticalMultiTabsBannerCard;", "Lcom/huawei/appgallery/foundation/card/base/card/BaseDistCard;", "Landroidx/databinding/ViewDataBinding;", "context", "Landroid/content/Context;", "cardStyle", "Lcom/huawei/appmarket/service/store/awk/node/VerticalMultiTabsEntranceNode$CardStyle;", "cardType", "Lcom/huawei/appmarket/service/store/awk/node/VerticalMultiTabsEntranceNode$CardType;", "(Landroid/content/Context;Lcom/huawei/appmarket/service/store/awk/node/VerticalMultiTabsEntranceNode$CardStyle;Lcom/huawei/appmarket/service/store/awk/node/VerticalMultiTabsEntranceNode$CardType;)V", "bannerTouchCallback", "Lcom/huawei/appmarket/service/store/awk/widget/topbanner/BannerPagerAdapter$TopBannerTouchCallback;", "getBannerTouchCallback", "()Lcom/huawei/appmarket/service/store/awk/widget/topbanner/BannerPagerAdapter$TopBannerTouchCallback;", "bannerTouchCallback$delegate", "Lkotlin/Lazy;", "cardEventListener", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardEventListener;", "cardName", "", "dotsPageChangeListener", "Lcom/huawei/appmarket/service/store/awk/card/DotsPageChangeListener;", "exposureController", "Lcom/huawei/appmarket/service/exposure/control/ExposureController;", "getExposureController", "()Lcom/huawei/appmarket/service/exposure/control/ExposureController;", "exposureController$delegate", "exposureDetail", "Ljava/util/ArrayList;", "Lkotlin/collections/ArrayList;", "getExposureDetail", "()Ljava/util/ArrayList;", "indicator", "Lcom/huawei/appmarket/framework/widget/uxwidget/hwdotspageindicator/HwTopBannerIndicator;", "interactiveControl", "Lcom/huawei/appmarket/service/interactive/control/InteractiveControl;", "mDotsViewPager", "Lcom/huawei/appmarket/service/store/awk/widget/topbanner/DotsViewPager;", "rootView", "Landroid/view/View;", "viewPagerAdapter", "Lcom/huawei/appmarket/service/store/awk/widget/topbanner/VerticalMultiTabsBannerPagerAdapter;", "biAnalytic", "", "data", "Lcom/huawei/appgallery/foundation/ui/framework/cardframe/bean/BaseCardBean;", "bindCard", "Lcom/huawei/appgallery/foundation/ui/framework/cardframe/card/BaseCard;", "parent", "setBannerIcon", "bannerIcon", "Landroid/widget/ImageView;", "landscapeBanner", "banner", "setCardChunk", "cardChunk", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardChunk;", "setData", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardBean;", "setInteractiveControl", "setOnClickListener", "setupBannerMargin", "startAutoScroll", "stopAutoScroll", "Companion", "WiseDist_release"}, k = 1, mv = {1, 1, 15})
public final class eig extends BaseDistCard<ViewDataBinding> {
    static final /* synthetic */ fsx[] ˋ = new fsx[]{fsf.ॱ(new fsj(fsf.ॱ(eig.class), "exposureController", "getExposureController()Lcom/huawei/appmarket/service/exposure/control/ExposureController;")), fsf.ॱ(new fsj(fsf.ॱ(eig.class), "bannerTouchCallback", "getBannerTouchCallback()Lcom/huawei/appmarket/service/store/awk/widget/topbanner/BannerPagerAdapter$TopBannerTouchCallback;"))};
    public static final a ᐝ = new a();
    private ejd ʻ;
    private HwTopBannerIndicator ʼ;
    private DotsViewPager ʽ;
    private View ˊॱ;
    private chy ˋॱ;
    private final fqm ˏॱ = fqr.ˋ(e.ˊ);
    private String ͺ;
    private ebk ॱˊ;
    private final com.huawei.appmarket.service.store.awk.node.VerticalMultiTabsEntranceNode.c ॱˋ;
    private final fqm ॱˎ = fqr.ˋ(new c(this));
    private eif ॱॱ;
    private final Context ॱᐝ;
    private final com.huawei.appmarket.service.store.awk.node.VerticalMultiTabsEntranceNode.b ᐝॱ;

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004XT¢\u0006\u0002\n\u0000¨\u0006\u0005"}, d2 = {"Lcom/huawei/appmarket/service/store/awk/card/VerticalMultiTabsBannerCard$Companion;", "", "()V", "DEFAULT_DURATION", "", "WiseDist_release"}, k = 1, mv = {1, 1, 15})
    public static final class a {
        private a() {
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0016\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u00032\u000e\u0010\u0005\u001a\n \u0004*\u0004\u0018\u00010\u00060\u0006H\n¢\u0006\u0002\b\u0007"}, d2 = {"<anonymous>", "", "<anonymous parameter 0>", "Landroid/view/View;", "kotlin.jvm.PlatformType", "event", "Landroid/view/MotionEvent;", "onTouch"}, k = 3, mv = {1, 1, 15})
    static final class b implements OnTouchListener {
        final /* synthetic */ eig ˎ;

        b(eig o_eig) {
            this.ˎ = o_eig;
        }

        public final boolean onTouch(View view, MotionEvent motionEvent) {
            DotsViewPager ˎ = this.ˎ.ʽ;
            return ˎ != null ? ˎ.dispatchTouchEvent(motionEvent) : false;
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\t\n\u0000\n\u0002\b\u0003*\u0001\u0001\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"<anonymous>", "com/huawei/appmarket/service/store/awk/card/VerticalMultiTabsBannerCard$bannerTouchCallback$2$1", "invoke", "()Lcom/huawei/appmarket/service/store/awk/card/VerticalMultiTabsBannerCard$bannerTouchCallback$2$1;"}, k = 3, mv = {1, 1, 15})
    static final class c extends fsc implements fry<AnonymousClass1> {
        final /* synthetic */ eig ˏ;

        c(eig o_eig) {
            this.ˏ = o_eig;
            super(0);
        }

        public /* synthetic */ Object ˋ() {
            return ˏ();
        }

        @NotNull
        public final AnonymousClass1 ˏ() {
            return new o.ejb.a() {
                public void ˎ() {
                    this.ˏ.ॱॱ();
                }

                public void ॱ() {
                    this.ˏ.ʼ();
                }

                public void ˋ() {
                    DotsViewPager ˎ = this.ˏ.ʽ;
                    if (ˎ != null) {
                        int ʼ = ˎ.ʼ();
                        int childCount = ˎ.getChildCount();
                        for (int i = 0; i < childCount; i++) {
                            View childAt = ˎ.getChildAt(i);
                            int[] iArr = new int[2];
                            childAt.getLocationOnScreen(iArr);
                            if (ʼ >= iArr[0]) {
                                int i2 = iArr[0];
                                fsd.ॱ(childAt, "view");
                                if (ʼ <= i2 + childAt.getWidth()) {
                                    Object tag = childAt.getTag(j.ٴ);
                                    if (tag instanceof BannerV9CardBean) {
                                        this.ˏ.ˊᐝ = (CardBean) tag;
                                        chy ʼ2 = this.ˏ.ˋॱ;
                                        if (ʼ2 != null) {
                                            ʼ2.ˏ(0, this.ˏ);
                                        }
                                        this.ˏ.ˋ((BaseCardBean) tag);
                                        return;
                                    }
                                    return;
                                }
                            }
                        }
                    }
                }
            };
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000/\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0018\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u0007H\u0016J \u0010\b\u001a\n\u0012\u0004\u0012\u00020\n\u0018\u00010\t2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\fH\u0016¨\u0006\u000e"}, d2 = {"com/huawei/appmarket/service/store/awk/card/VerticalMultiTabsBannerCard$setOnClickListener$1", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardEventListener;", "onClick", "", "eventType", "", "theCard", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/card/AbsCard;", "onGetCardBeans", "", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardBean;", "appid", "", "layoutId", "WiseDist_release"}, k = 1, mv = {1, 1, 15})
    public static final class d implements chy {
        final /* synthetic */ eig ˊ;
        final /* synthetic */ chy ॱ;

        d(eig o_eig, chy o_chy) {
            this.ˊ = o_eig;
            this.ॱ = o_chy;
        }

        public void ˏ(int i, @NotNull cih o_cih) {
            Context context = null;
            fsd.ˊ((Object) o_cih, "theCard");
            chy o_chy = this.ॱ;
            if (o_chy != null) {
                o_chy.ˏ(i, o_cih);
            }
            CardBean ˌ = o_cih.ˌ();
            if (!(ˌ instanceof BaseCardBean)) {
                ˌ = null;
            }
            BaseCardBean baseCardBean = (BaseCardBean) ˌ;
            if (baseCardBean != null && ebi.ˏ(this.ˊ.ͺ)) {
                ebi ˊ = ebi.ˊ();
                Context ॱ = this.ˊ.ʼॱ;
                if (ॱ instanceof Activity) {
                    context = ॱ;
                }
                ˊ.ॱ((Activity) context, baseCardBean);
            }
        }

        @Nullable
        public List<CardBean> ˎ(@NotNull String str, @NotNull String str2) {
            fsd.ˊ((Object) str, RpkInfo.APPID);
            fsd.ˊ((Object) str2, "layoutId");
            return null;
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\b\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "Lcom/huawei/appmarket/service/exposure/control/ExposureController;", "invoke"}, k = 3, mv = {1, 1, 15})
    static final class e extends fsc implements fry<dyf> {
        public static final e ˊ = new e();

        e() {
            super(0);
        }

        public /* synthetic */ Object ˋ() {
            return ˏ();
        }

        @NotNull
        public final dyf ˏ() {
            return new dyf();
        }
    }

    private final dyf ˊ() {
        fqm o_fqm = this.ˏॱ;
        fsx o_fsx = ˋ[0];
        return (dyf) o_fqm.ˎ();
    }

    private final o.ejb.a ˎ() {
        fqm o_fqm = this.ॱˎ;
        fsx o_fsx = ˋ[1];
        return (o.ejb.a) o_fqm.ˎ();
    }

    private final void ॱॱ() {
        /* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: o.eig.ॱॱ():void
	at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:116)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:249)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)
	at jadx.core.ProcessClass.process(ProcessClass.java:42)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
Caused by: java.lang.NullPointerException
*/
        /*
        r0 = this;
        r0 = r2.ॱˋ;
        r1 = o.eih.ˊ;
        r0 = r0.ordinal();
        r0 = r1[r0];
        switch(r0) {
            case 1: goto L_0x000e;
            case 2: goto L_0x0016;
            default: goto L_0x000d;
        };
        return;
    L_0x000e:
        r0 = r2.ʼ;
        if (r0 == 0) goto L_0x000d;
        r0.ˋ();
        goto L_0x000d;
        goto L_0x000d;
        */
        throw new UnsupportedOperationException("Method not decompiled: o.eig.ॱॱ():void");
    }

    private final void ᐝ() {
        /* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: o.eig.ᐝ():void
	at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:116)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:249)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.core.ProcessClass.processDependencies(ProcessClass.java:59)
	at jadx.core.ProcessClass.process(ProcessClass.java:42)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
Caused by: java.lang.NullPointerException
*/
        /*
        r0 = this;
        r2 = 0;
        r0 = r6.ʻ;
        if (r0 == 0) goto L_0x0045;
    L_0x0005:
        r0 = r0.ॱ();
        r1 = r0;
    L_0x000a:
        r0 = r6.ॱᐝ;
        r0 = r0.getResources();
        r3 = o.ewm.d.ˊ;
        r3 = r0.getDimensionPixelSize(r3);
        r0 = r6.ʼॱ;
        r4 = o.azb.ˏ(r0);
        r0 = r6.ʽ;
        if (r0 == 0) goto L_0x0048;
    L_0x0020:
        r0 = r0.getLayoutParams();
    L_0x0024:
        r5 = r0 instanceof androidx.constraintlayout.widget.ConstraintLayout.LayoutParams;
        if (r5 != 0) goto L_0x0029;
    L_0x0028:
        r0 = r2;
    L_0x0029:
        r0 = (androidx.constraintlayout.widget.ConstraintLayout.LayoutParams) r0;
        if (r0 == 0) goto L_0x0059;
    L_0x002d:
        r2 = r3 - r1;
        r0.setMarginStart(r2);
        r2 = r6.ॱˋ;
        r5 = o.eih.ˏ;
        r2 = r2.ordinal();
        r2 = r5[r2];
        switch(r2) {
            case 1: goto L_0x004a;
            case 2: goto L_0x005a;
            default: goto L_0x003f;
        };
    L_0x003f:
        r0 = new kotlin.NoWhenBranchMatchedException;
        r0.<init>();
        throw r0;
    L_0x0045:
        r0 = 0;
        r1 = r0;
        goto L_0x000a;
    L_0x0048:
        r0 = r2;
        goto L_0x0024;
    L_0x004a:
        r1 = r4 - r1;
        r0.setMarginEnd(r1);
        r1 = r6.ʽ;
        if (r1 == 0) goto L_0x0058;
    L_0x0053:
        r0 = (android.view.ViewGroup.LayoutParams) r0;
        r1.setLayoutParams(r0);
    L_0x0059:
        return;
    L_0x005a:
        r1 = r4 - r3;
        r1 = r1 / 2;
        goto L_0x004c;
        */
        throw new UnsupportedOperationException("Method not decompiled: o.eig.ᐝ():void");
    }

    public eig(@NotNull Context context, @NotNull com.huawei.appmarket.service.store.awk.node.VerticalMultiTabsEntranceNode.c cVar, @NotNull com.huawei.appmarket.service.store.awk.node.VerticalMultiTabsEntranceNode.b bVar) {
        fsd.ˊ((Object) context, "context");
        fsd.ˊ((Object) cVar, "cardStyle");
        fsd.ˊ((Object) bVar, "cardType");
        super(context);
        this.ॱᐝ = context;
        this.ॱˋ = cVar;
        this.ᐝॱ = bVar;
    }

    @Nullable
    public final ArrayList<String> ˋ() {
        DotsViewPager dotsViewPager = this.ʽ;
        if (dotsViewPager == null) {
            return null;
        }
        ArrayList<String> arrayList = new ArrayList();
        int childCount = dotsViewPager.getChildCount();
        for (int i = 0; i < childCount; i++) {
            View childAt = dotsViewPager.getChildAt(i);
            if (ˊ().ˎ(childAt)) {
                Object tag = childAt.getTag(j.ٴ);
                if (!(tag instanceof BannerV9CardBean)) {
                    tag = null;
                }
                BannerV9CardBean bannerV9CardBean = (BannerV9CardBean) tag;
                if (bannerV9CardBean != null) {
                    arrayList.add(bannerV9CardBean.ॱॱ() + "#$#" + bannerV9CardBean.u_());
                }
            }
        }
        return arrayList;
    }

    public final void ˋ(@Nullable ebk o_ebk) {
        this.ॱˊ = o_ebk;
    }

    public void ॱ(@Nullable chz o_chz) {
        super.ॱ(o_chz);
        this.ͺ = o_chz != null ? o_chz.ˏॱ() : null;
    }

    @Nullable
    public cgz<?> ˏ(@NotNull View view) {
        fsd.ˊ((Object) view, "parent");
        this.ʼ = (HwTopBannerIndicator) view.findViewById(j.ʽᐧ);
        HwTopBannerIndicator hwTopBannerIndicator = this.ʼ;
        if (hwTopBannerIndicator != null) {
            hwTopBannerIndicator.setIsNeedChangeViewPagerScrollDuration(true);
        }
        HwTopBannerIndicator hwTopBannerIndicator2 = this.ʼ;
        if (hwTopBannerIndicator2 != null) {
            boolean z;
            switch (eih.ˎ[this.ॱˋ.ordinal()]) {
                case 1:
                    z = true;
                    break;
                case 2:
                    z = false;
                    break;
                default:
                    throw new NoWhenBranchMatchedException();
            }
            hwTopBannerIndicator2.setIsRecycle(z);
        }
        hwTopBannerIndicator = this.ʼ;
        if (hwTopBannerIndicator != null) {
            hwTopBannerIndicator.setScrollDuration(700);
        }
        this.ʽ = (DotsViewPager) view.findViewById(j.ᵎॱ);
        this.ॱॱ = new eif(this.ʼॱ, this.ʽ, this.ʼ, "");
        HwTopBannerIndicator hwTopBannerIndicator3 = this.ʼ;
        if (hwTopBannerIndicator3 != null) {
            hwTopBannerIndicator3.setOnPageChangeListener(this.ॱॱ);
        }
        this.ˊॱ = view.findViewById(j.ʹʻ);
        switch (eih.ˋ[this.ॱˋ.ordinal()]) {
            case 2:
                View view2 = this.ˊॱ;
                if (view2 != null) {
                    view2.setOnTouchListener(new b(this));
                    break;
                }
                break;
        }
        com.huawei.appmarket.service.store.awk.node.VerticalMultiTabsEntranceNode.c cVar = this.ॱˋ;
        com.huawei.appmarket.service.store.awk.node.VerticalMultiTabsEntranceNode.b bVar = this.ᐝॱ;
        Context context = this.ʼॱ;
        fsd.ॱ(context, "mContext");
        this.ʻ = new ejd(cVar, bVar, context, new ArrayList(), ˎ());
        DotsViewPager dotsViewPager = this.ʽ;
        if (dotsViewPager != null) {
            dotsViewPager.setAdapter(this.ʻ);
        }
        hwTopBannerIndicator3 = this.ʼ;
        if (hwTopBannerIndicator3 != null) {
            hwTopBannerIndicator3.setViewPager(this.ʽ, 0);
        }
        ʽ(view);
        return this;
    }

    public void ˎ(@NotNull ImageView imageView, @NotNull String str, @NotNull String str2) {
        fsd.ˊ((Object) imageView, "bannerIcon");
        fsd.ˊ((Object) str, "landscapeBanner");
        fsd.ˊ((Object) str2, "banner");
    }

    public void ˏ(@NotNull CardBean cardBean) {
        List list;
        List list2 = null;
        fsd.ˊ((Object) cardBean, DataBufferSafeParcelable.DATA_FIELD);
        if (cardBean instanceof BannerV9ListCardBean) {
            Object obj = cardBean;
        } else {
            list = null;
        }
        BannerV9ListCardBean bannerV9ListCardBean = (BannerV9ListCardBean) list;
        if (bannerV9ListCardBean != null) {
            List list3;
            this.ˊᐝ = bannerV9ListCardBean;
            List<BannerV9CardBean> ˊ = bannerV9ListCardBean.ˊ();
            if (ˊ != null) {
                for (BannerV9CardBean bannerV9CardBean : ˊ) {
                    fsd.ॱ(bannerV9CardBean, "it");
                    bannerV9CardBean.ʼ(bannerV9ListCardBean.ॱᐧ());
                    bannerV9CardBean.ˋˋ(bannerV9ListCardBean.ॱˉ());
                    bannerV9CardBean.ˏˏ(bannerV9ListCardBean.ॱꓸ());
                    bannerV9CardBean.ᐝ(bannerV9ListCardBean.ॱˍ());
                }
            }
            if (bannerV9ListCardBean instanceof ebh) {
                Object obj2 = bannerV9ListCardBean;
            } else {
                list3 = null;
            }
            ebh o_ebh = (ebh) list3;
            if (o_ebh != null) {
                ebk o_ebk = this.ॱˊ;
                if (o_ebk != null) {
                    o_ebk.ˋ(o_ebh);
                }
                ebk o_ebk2 = this.ॱˊ;
                if (o_ebk2 != null) {
                    o_ebk2.ˊ();
                }
            }
            eif o_eif = this.ॱॱ;
            if (o_eif != null) {
                o_eif.ˏ(bannerV9ListCardBean.ॱˉ());
            }
            ᐝ();
            DotsViewPager dotsViewPager = this.ʽ;
            if (dotsViewPager != null) {
                int i;
                switch (eih.ॱ[this.ॱˋ.ordinal()]) {
                    case 1:
                        i = 2;
                        break;
                    case 2:
                        i = 3;
                        break;
                    default:
                        throw new NoWhenBranchMatchedException();
                }
                dotsViewPager.setOffscreenPageLimit(i);
            }
            boolean ॱᐧ = bannerV9ListCardBean.ॱᐧ();
            HwTopBannerIndicator hwTopBannerIndicator = this.ʼ;
            if (hwTopBannerIndicator != null) {
                hwTopBannerIndicator.setmFragmentSelected(ॱᐧ);
            }
            hwTopBannerIndicator = this.ʼ;
            if (hwTopBannerIndicator != null) {
                hwTopBannerIndicator.setTag(bannerV9ListCardBean);
            }
            ejd o_ejd = this.ʻ;
            if (o_ejd != null) {
                HwTopBannerIndicator hwTopBannerIndicator2 = this.ʼ;
                if (hwTopBannerIndicator2 != null) {
                    DotsViewPager dotsViewPager2 = this.ʽ;
                    if (dotsViewPager2 != null) {
                        if (o_ejd.getCount() > 0 || ॱᐧ) {
                            List ˊ2 = bannerV9ListCardBean.ˊ();
                            if (ˊ2 instanceof List) {
                                list2 = ˊ2;
                            }
                            if (o_ejd.ˋ(list2)) {
                                list = bannerV9ListCardBean.ˊ();
                                int size = list != null ? list.size() : 0;
                                hwTopBannerIndicator2.setViewPager(dotsViewPager2, size);
                                if (MinimumFactory.getBoolValue(this.ʼॱ)) {
                                    dotsViewPager2.setCurrentItem(((size - (300 % size)) + 300) - 1, false);
                                } else {
                                    dotsViewPager2.setCurrentItem((size - (300 % size)) + 300, false);
                                }
                            }
                        }
                        if (ॱᐧ) {
                            hwTopBannerIndicator2.ˋ();
                        }
                    }
                }
            }
        }
    }

    private final void ʼ() {
        HwTopBannerIndicator hwTopBannerIndicator = this.ʼ;
        if (hwTopBannerIndicator != null) {
            hwTopBannerIndicator.ॱ();
        }
    }

    private final void ˋ(BaseCardBean baseCardBean) {
        String ॱˉ = baseCardBean.ॱˉ();
        String ʼ = dof.ʼ(baseCardBean.ॱॱ());
        fsd.ॱ(ʼ, "detailId");
        ʼ = eiz.ˊ(ॱˉ + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + new ftb("\\|").ˋ(ʼ, "#$#") + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + baseCardBean.u_());
        fsd.ॱ(ʼ, "AwkUtil.convertAnatic(value)");
        ContentManager ॱ = ContentManager.getInstant();
        fsd.ॱ(ॱ, "ApplicationWrapper.getInstance()");
        dgh.onEvent(new o.dge.d(ॱ.getContext(), n.ᐝˋ).ˏ(ʼ).ˋ());
    }

    public void ॱ(@Nullable chy o_chy) {
        this.ˋॱ = new d(this, o_chy);
    }
}
